<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript">
var flag =false;
 function checkChange(){	
	if(flag==false)
	{ 
	msg('提示','表单未做修改');
	return false;
	}  
 }
function checkPrj(id)
{
	$j('#tabarry').tabs('select','已创建,等待执行');	
	var divid ='tabarry';
	var urlstr = '__APP__/Prj/checkPrj'+'?id_gezi_prj='+id;
	updateTab(divid,urlstr);	
} 

</script>
</head>

<body>
				<php>$rttary = getPrjList('beCreated'); $prjList1 = $rttary['a'];</php>
				<select name="id_gezi_prj" id="selprjid">
				  <option value="选择项目ID" selected>选择项目ID</option>				  
				  <volist name="prjList1" id="voo">
				  <option value="{$voo.id_gezi_prj}" >{$voo.id_gezi_prj}</option>				  
				  </volist>
		      </select>
					<input type="button" value="申请执行" onclick="checkPrj($('selprjid').value)" />
				<div id="pdtinfo" >
		<notempty name="prjList">
		状态为beCreated,已创建的推广项目,ID为{$id_gezi_prj},请提交完善信息,申请执行<br /><span style="color:red;">*</span> 
		红色星号标记，表示可以修改、提交信息，其他信息自动提取生成
				<form action="__APP__/Prj/addPrjInfo" method="post" enctype="multipart/form-data" onsubmit="return checkChange();" >
				<table style="font-size:12px" 	 border="1" >				
				<volist name="prjpdtList" id="vo">
				<tr bgcolor="#FF9900"><td colspan="9">项目ID<span id="idprj">{$vo.id_gezi_prj}</span>：商品序号{$vo.id_gezi_prj_pdt}</td></tr>
				
				<tr><td>商品图片(自动提取)</td><td>优惠券格子图片<span style="color:red;">*</span></td><td>名称</td><td>淘宝价</td></tr>											
				<tr><td><img src="{$vo.pPic}" height="85" width="85" alt="商品图片"/></td>
				<td><img src="__PUBLIC__/Uploads/m_{$vo.prj_pic}" height="85" width="85" alt="广告位图片" /><br/>
				<input type="file" id="img_file" name="img_file[]" value="{$vo.prj_pic}" onchange="flag=true;" /></td>
				<td><input type="text" disabled="disabled" id="pName" name="pName" value="{$vo.pName}" size="8" /></td>
				<td><input type="text" id="pTprice" disabled="disabled" name="pTprice" value="{$vo.pTprice}" size="8" />
				<input type="hidden"  name="id_gezi_prj_pdt[]" value="{$vo.id_gezi_prj_pdt}" />
				<input type="hidden"  name="id_gezi_prj" value="{$vo.id_gezi_prj}"/>
				<input type="hidden"  id="id_gezi_prj" value="{$vo.id_gezi_prj}"/>	
				<input   name="nowGezi" value="{$nowGezi}"/>	
				<input   name="couponTab" value="{$vo.couponTab}"/>		
				</td>
				</tr>
				<tr><td colspan="3">商品网址<span style="color:red;">*</span></td><td>格子优惠码</td></tr>
				<tr>
				<td colspan="3">
				<input type="text" value="{$vo.productUrl}" size="50" height="10"  name="productUrl[]" onchange="flag=true;"></td>
				
				<td><input type="text" id="tCode" name="tCode" disabled="disabled" value="{$vo.tCode}" size="8" /></td>
				</tr>
				</volist>
				<div >
				<tr><td colspan="9">项目概要,售后服务说明<span style="color:red;">*</span></td></tr>
		<tr><td colspan="9" align="center"><textarea id="describePrj" name="describePrj" cols="55" rows="5" onchange="flag=true;">{$describePrj}</textarea>
		<br/><input type="submit" value="提交推广产品信息"  /></td></tr>					
				</div>
				
	
				</table>
				
				</form>
		</notempty>	
		<span style="color:#66CCFF"	>已创建,等待执行：提交项目促销图片、商品网址，例如项目有1000张，2个格子每张，则提供2个商品网址、2个促销图片<br/>
		选择已创建的项目ID，申请执行项目，填写必要信息，点击提交</span>
				</div>	
</body>
</html>